package com.sxf.redis.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @description: redisson配置信息
 * @author: Leo
 * @date:
 */
@ConfigurationProperties(RedissonProperties.PREFIX)
public class RedissonProperties {
	static final String PREFIX = "sxf.redisson";

	private int threads = 0;
	private int nettyThreads = 0;

	private ClusterProperties clusterServersConfig;
	private MasterSlaveProperties masterSlaveServersConfig;
	private SingleProperties singleServerConfig;
	private SentinelProperties sentinelServersConfig;

	public int getThreads() {
		return threads;
	}

	public void setThreads(int threads) {
		this.threads = threads;
	}

	public int getNettyThreads() {
		return nettyThreads;
	}

	public void setNettyThreads(int nettyThreads) {
		this.nettyThreads = nettyThreads;
	}

	public ClusterProperties getClusterServersConfig() {
		return clusterServersConfig;
	}

	public void setClusterServersConfig(ClusterProperties clusterServersConfig) {
		this.clusterServersConfig = clusterServersConfig;
	}

	public MasterSlaveProperties getMasterSlaveServersConfig() {
		return masterSlaveServersConfig;
	}

	public void setMasterSlaveServersConfig(MasterSlaveProperties masterSlaveServersConfig) {
		this.masterSlaveServersConfig = masterSlaveServersConfig;
	}

	public SingleProperties getSingleServerConfig() {
		return singleServerConfig;
	}

	public void setSingleServerConfig(SingleProperties singleServerConfig) {
		this.singleServerConfig = singleServerConfig;
	}

	public SentinelProperties getSentinelServersConfig() {
		return sentinelServersConfig;
	}

	public void setSentinelServersConfig(SentinelProperties sentinelServersConfig) {
		this.sentinelServersConfig = sentinelServersConfig;
	}

}
